LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE    := UltimateSubsystemRegistry

LOCAL_LDLIBS 	:= -landroid 
LOCAL_LDLIBS	+= -lc 
LOCAL_LDLIBS	+= -lm 
LOCAL_LDLIBS	+= -ldl 
LOCAL_LDLIBS	+= -llog 
LOCAL_LDLIBS	+= -lEGL 
LOCAL_LDLIBS	+= -lGLESv1_CM
LOCAL_LDLIBS	+= -L$(OGRE_ANDROID_HOME)/Ogre/lib/armeabi-v7a -L$(OGRE_ANDROID_HOME)/Dependencies/lib/armeabi-v7a
LOCAL_LDLIBS	+= -lPlugin_ParticleFXStatic -lPlugin_OctreeSceneManagerStatic -lRenderSystem_GLESStatic -lOgreOverlayStatic -lOgreMainStatic
LOCAL_LDLIBS	+= -lzzip -lz -lFreeImage -lfreetype -lOIS  $(OGRE_ANDROID_HOME)/Dependencies/lib/armeabi-v7a/libsupc++.a $(OGRE_ANDROID_HOME)/Dependencies/lib/armeabi-v7a/libstdc++.a
LOCAL_STATIC_LIBRARIES := android_native_app_glue cpufeatures

LOCAL_CFLAGS := -DGL_GLEXT_PROTOTYPES=1 -I$(OGRE_ANDROID_HOME)/Ogre/include/Build -I$(OGRE_ANDROID_HOME)/Ogre/include/OgreMain -I$(OGRE_ANDROID_HOME)/Ogre/include/RenderSystems/GLES
LOCAL_CFLAGS += -I$(OGRE_ANDROID_HOME)/Ogre/include/RenderSystems/GLES/EGL -I$(ANDROID_NDK)/sources/cpufeatures -I$(OGRE_ANDROID_HOME)/Ogre/include/Components/Overlay 
LOCAL_CFLAGS += -I$(OGRE_ANDROID_HOME)/Ogre/include/PlugIns/ParticleFX -I$(OGRE_ANDROID_HOME)/Ogre/include/PlugIns/OctreeSceneManager 
LOCAL_CFLAGS += -I$(OGRE_ANDROID_HOME)/Dependencies/include -I$(OGRE_ANDROID_HOME)/Dependencies/include/OIS 
LOCAL_CFLAGS += -Iinclude
LOCAL_CFLAGS += -fexceptions -frtti -x c++ -D___ANDROID___ -DANDROID -DZZIP_OMIT_CONFIG_H 

LOCAL_PATH := src
LOCAL_SRC_FILES := UltimatePhysicsActor.cpp
LOCAL_SRC_FILES += UltimatePhysicsActorDesc.cpp
LOCAL_SRC_FILES += UltimatePhysicsContactListener.cpp
LOCAL_SRC_FILES += UltimatePhysicsScene.cpp
LOCAL_SRC_FILES += UltimatePhysicsSubsystem.cpp
LOCAL_SRC_FILES += UltimateSoundSubsystem.cpp
LOCAL_SRC_FILES += UltimateSubsystemRegistry.cpp
LOCAL_SRC_FILES += UltimateSubsystemRegistryPrecompiled.cpp
	
include $(BUILD_STATIC_LIBRARY) 
  